﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Patterns.DependencyInjection {

    public class InversionOfControlContainer {
        private static IDependencyResolver _resolver;

        public static void Initialize(IDependencyResolver resolver) {
            _resolver = resolver;
        }

        public static T Resolve<T>() {
            return _resolver.Resolve<T>();
        }
    }
}
